package P4.T06;

public class T06 {
    public static void main(String[] args) {
        try {
            Date date = new Date(1999, 13, 1);
        }
        catch (YearOutofBoundsException e){
            System.out.println("月份超出范围");
        }
        catch (MonthOutofBoundsException e){
            System.out.printf("月份%d不是一个正常的月份，%s\n",e.getMonth(),e.getMessage());
        }
        catch (Exception e){

        }
    }
}
